package org.onvivals.module.ums.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.onvivals.common.base.BaseEntity;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户充值表
 */
@EqualsAndHashCode(callSuper = true)
@Schema(description="用户充值表")
@Data
@TableName(value = "ums_user_recharge")
public class UmsUserRecharge extends BaseEntity<UmsUserRecharge> {

	@Serial
	private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description="ID")
    private Long id;

    /**
     * 充值用户UID
     */
    @TableField(value = "`uid`")
    @Schema(description="充值用户UID")
    private Long uid;

    /**
     * 昵称
     */
    @TableField(value = "nickname")
    @Schema(description="昵称")
    private String nickname;

    /**
     * 订单号
     */
    @TableField(value = "order_id")
    @Schema(description="订单号")
    private String orderId;

    /**
     * 充值金额
     */
    @TableField(value = "price")
    @Schema(description="充值金额")
    private BigDecimal price;

    /**
     * 购买赠送金额
     */
    @TableField(value = "give_role")
    @Schema(description="购买赠送角色数量")
    private Integer giveRole;

    /**
     * 充值类型
     */
    @TableField(value = "recharge_type")
    @Schema(description="充值类型")
    private String rechargeType;

    /**
     * 是否充值
     */
    @TableField(value = "paid")
    @Schema(description="是否充值")
    private Integer paid;

    /**
     * 充值支付时间
     */
    @TableField(value = "pay_time")
    @Schema(description="充值支付时间")
    private Date payTime;

    /**
     * 退款金额
     */
    @TableField(value = "refund_price")
    @Schema(description="退款金额")
    private BigDecimal refundPrice;

	@Schema(description="充值类型")
	private String rechargeMethod;

	@Schema(description="时间")
	private int time;

	@Schema(description="名称")
	private String name;

	@Schema(description="业务ID")
	private Long busId;


}
